﻿<Window x:Class="YLServerInterface.Forms.frmTemplateBuilder2"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:YLServerInterface.UserControls.TemplateBuilder"
        xmlns:frm="clr-namespace:YLServerInterface.Forms"
        Title="frmTemplateBuilder2" Height="460" Width="523" WindowStartupLocation="CenterScreen" MinWidth="400" MinHeight="600">
    <Window.Resources>
        <frm:MapTemplateItem x:Key="nameMapItem"/>
    </Window.Resources>
    <Grid UseLayoutRounding="True">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="3*"/>
        </Grid.ColumnDefinitions>
        <StackPanel
            Grid.Column="0" Margin="3">
            <Button
                Name="btnNewTemplate" Click="btnNewTemplate_Click">New</Button>
            <ListBox
                Name="lstExistedTemplate" SelectionChanged="lstExistedTemplate_SelectionChanged" SelectedIndex="0">
                <ListBox.ContextMenu>
                    <ContextMenu >
                        <MenuItem Header="删除" Name="templateMenuItemDelete" Click="templateMenuItemDelete_Click" />
                    </ContextMenu>
                </ListBox.ContextMenu>
            </ListBox>
        </StackPanel>
        <GridSplitter
            Grid.Column="1"
            Width="5" HorizontalAlignment="Stretch"/>
        <local:TemplateItemShower 
            x:Name="tempalteShower"
            Grid.Column="2"
            />
    </Grid>
</Window>
